﻿package monopoly.IFS {
	
	public class GLOBALS 
		{
		/* types stuff */
		
		public static const INT_SIZE:uint  = 4;
		public static const LONG_SIZE:uint = 8;
		public static const CHAR_SIZE:uint = 1;
		public static const BYTE:uint	   = 1;
		
		/* server configuration stuff */
		
		public static var ServerName:String = "bogo.com";
		public static var WebServerName:String = "bogo.com";
		//debug level
		public static const DEBUG_VIEW:int	= 1;
		public static const DEBUG_LOGIC:int	= 2;
		public static var 	DEBUG:int		= DEBUG_LOGIC; // | DEBUG_VIEW;
		
		/* view stuff */
		
		// colors
		public static const PCOLORS:Array 				= new Array(0x00F000, 0x0000FF, 0x00000F, 0x000FFF, 0x00FFFF, 0x000F0F); // up to 6 players
		public static const SEROUND_COLOR:Number		= 0xFFF000;
		public static const DEFAULT_BG_COLOR:Number		= 0xAAF0F0;
		public static const DEFAULT_DIALOG_COLOR:Number	= 0x00FF0F;
		public static const DEFAULT_TITLE_COLOR:Number	= 0xAAF0F2;
		public static const DEFAULT_OFFWHITE_BG:Number	= 0x0000FF;
		
		// sizes
		public static const BOARD_WIDTH:Number	= 700;
		public static const BOARD_HEIGHT:Number	= 560;
		public static const VPANEL_PROPORTION:Number = 0.28;
		public static const VPANEL_WIDTH:Number	= BOARD_WIDTH * VPANEL_PROPORTION;
		public static const VPANEL_HEIGHT:Number= BOARD_HEIGHT;
		public static const HPANEL_PROPORTION:Number = 0.30;
		public static const HPANEL_WIDTH:Number	= BOARD_WIDTH + VPANEL_WIDTH;
		public static const HPANEL_HEIGHT:Number= BOARD_HEIGHT * HPANEL_PROPORTION;
		public static const VPADDING:Number		= 5;
		public static const HPADDING:Number		= 5;
		public static const DEFAULT_TITLE_HEIGHT:Number = 30;

		/* game logic, rules stuff */
		
		public static const UPGRADE_LEVELS:uint			= 5;
		public static const UPGRADE_PERCENT:Number		= 0.25;
		public static const MAX_NUM_PLAYERS:int			= 6;
		
		
		}
}